package com.wangyb.wework.utils;

import lombok.Data;

/**
 * @Author: wangyb
 * @Date: 2021/7/22 11:16 上午
 */
@Data
public class JsApiTicket {
	private String ticket;
	private long expiresIn;
	private long createTime = System.currentTimeMillis();
	public boolean isExpired(){
		return System.currentTimeMillis() - createTime > expiresIn * 1000;
	}
}
